hostname=`cat /etc/hostname`
dt=`date +%d%m%y%H%M%S`
tar -cvf "$hostname$dt.tar" logs/*
gzip "$hostname$dt.tar"
guest=`last -i | head -n1 | grep "still logged in" | sed "s/.*\([0-9][0-9][0-9]\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\).*/\1/"`
scp "$hostname$dt.tar.gz" drick@$guest:/home/drick/projects/masters/ufam/thesis/code/results
